www.gusucode.com > 55:【198-3904】绿色蔬菜水果产品类网站织梦模板(带手机端) > 55:【198-3904】绿色蔬菜水果产品类网站织梦模板(带手机端)/(带手机版数据同步)绿色蔬菜类网站源码 水果类企业/include/ckeditor/plugins/multipic/plugin.js
// Register a plugin named "dedepage". (function() { CKEDITOR.plugins.add( 'multipic', { init : function( editor ) { // Register the command. editor.addCommand( 'multipic',{ exec : function( editor ) { // Create the element that represents a print break. // alert('dedepageCmd!'); var mpic = document.getElementById("mPic"); if(mpic != null && typeof mpic != 'undefined' ) { if(mpic.style.display=='none') { mpic.style.display='block'; } else { mpic.style.display='none'; } }else { alert('本编辑器不支持多图发布功能!'); } } }); // alert('dedepage!'); // Register the toolbar button. editor.ui.addButton( 'MultiPic', { label : '多图发布', command : 'multipic', icon: 'images/multipic.gif' }); // alert(editor.name); }, requires : [ 'fakeobjects' ] }); })();